import serial
import visapatchref
from time import sleep

s = "12345678"
## comport = serial.Serial(9-1,115200,timeout=1)
## keith = visapatchref.Visapatch_Serial(comport,24)
## lia = visapatchref.Visapatch_Serial(comport,12)
## keith.write('*RST')
## keith.write('*WAI')
## print keith.ask('*IDN?')
## lia.write('ADF')
## sleep(15)
## print lia.ask('ID')


## keith.write('++rst\n')
## keith.write('++ifc\n')
## keith.write('++mode 1\n')
## keith.write('++eos 0\n') #2
## keith.write('++eoi 1\n')
## keith.write('++addr 24\n')
## keith.write('++auto 0\n')
## keith.write('*RST\n')
## keith.write('*WAI\n')
## keith.write('*IDN?\n')
## keith.write('++read eoi\n')
## inChar = keith.read()
## inString = inChar
## while inChar != '\n':
## 	inChar = keith.read()
## 	inString += inChar
## print inString.rstrip('\r'+'\n')